import tkinter as tk


window = tk.Tk()
window.title('my window')
window.geometry('200x200')

var = tk.StringVar()
l = tk.Label(window, bg='yellow', width=20,text='empty')
l.pack()


def print_selection():
    if(var1.get()==1)&(var2.get()==0):
        l.config(text='l love only Python')
    elif(var1.get()==0)&(var2.get()==0):
        l.config(text='l do not love editer')
    else:
        l.config(text='l love both')
var1=tk.IntVar()
var2=tk.IntVar()
c1=tk.Checkbutton(window,text='python',variable=var1,onvalue=1,offvalue=0,command=print_selection)
c2=tk.Checkbutton(window,text='javascript',variable=var2,onvalue=1,offvalue=0,command=print_selection)
c1.pack()
c2.pack()

window.mainloop()
